package com.jackson.engineeringtechnologyguide.conditional;

/*
 * Author: JacksonCoder
 * FileName: RandomDataSupplier
 * Version: 1.0.0
 * Date: 2025/1/11
 */

import java.util.function.Supplier;

/**
 * 随机数生成器
 *
 * @param <T>
 */

public class RandomDataSupplier<T> {

    private final Supplier<T> rand;

    public RandomDataSupplier(Supplier<T> rand) {
        this.rand = rand;
    }

    public T get() {
        return rand.get();
    }

}
